import Vue from 'vue'
import Router from 'vue-router'

import goods from '@/components/goods/goods'
import information from '@/components/information/information'
import pay from '@/components/pay/pay'
import directions from '@/components/directions/directions'
import process from '@/components/process/process'
import detail from '@/components/detail/detail'
import orderlist from '@/components/userorder/orderlist'
import orderinfo from '@/components/userorder/orderinfo'
Vue.use(Router)
const router = new Router({
  mode: 'history',
  // base: '/materialsweb/',
  linkActiveClass: 'active',
  routes: [{
    path: '/',
    redirect: '/goods'
  }, {
    path: '/goods',
    component: goods
  },
  {
    path: '/information',
    component: information
  }, {
    path: '/pay',
    component: pay
  },
  {
    path: '/directions',
    component: directions
  },
  {
    path: '/process',
    component: process
  },
  {
    path: '/orderlist',
    component: orderlist
  },
  {
    path: '/orderinfo',
    component: orderinfo
  },
  {
    path: '/detail',
    component: detail
  }]
})
export default router
